home *** CD-ROM | disk | FTP | other *** search
/ CU Amiga Super CD-ROM 19 / CU Amiga Magazine's Super CD-ROM 19 (1998)(EMAP Images)(GB)[!][issue 1998-02].iso / CUCD / Readers / ExtremeAmos / Text / AMOS_Effects.ASC < prev    next >
Text File  |  1995-12-30  |  7KB  |  146 lines

  1. ü
  2.                              AMOS Screen effects
  3.                              ~~~~~~~~~~~~~~~~~~~
  4.     
  5. û
  6.         When writing computer games and utilities, it helps if the program
  7.     you are writing does something on the screen in a fancy kind of way, 
  8.     like clearing the text from the screen. It would be rather boring to 
  9.     use a simple CLS command, but using a screen effect, you can clear the 
  10.     information in such a way that would keep the user enthralled for 
  11.     quite a while.
  12.     
  13.         The most common kind of screen wipe available is the FADE command, 
  14.     which reduces the value of the colours on the screen, so that they 
  15.     reduce to black, or a specified set of colours, within a certain time 
  16.     set by the command.
  17.     
  18.         Other commands that can be used are CLS, SCREEN COPY, PLOT, DRAW, 
  19.     plus loads more, including commands from various extensions. 
  20.     Hopefully, this small document will introduce you to various different 
  21.     kinds of screen effects, other than just clearing the screen.
  22.     
  23. ÿ
  24. ü
  25.                              Using Colourshifting
  26.                              ~~~~~~~~~~~~~~~~~~~~
  27. û
  28.         One very interesting screen effect, is using a colourshifting
  29.     sequence. This involves a picture being drawn on a screen, and the 
  30.     pallette of colours it uses being shifted, rather than you actually 
  31.     changing the picture. This can result in huge proportions of the 
  32.     screen changing colour thousands of times faster than using a command 
  33.     such as FILL or PAINT.
  34.     
  35.         The different possibilities for this are endless. Common ones 
  36.     include "Plasma" effects, which use around 32 colours, and shift up by 
  37.     one at a time, which produces the plasma effect.
  38.     
  39.         Another example of a colourshift is the VU Cross, found in the 
  40.     executables section of this issue, and in source code form on disk 2. 
  41.     The colour values of the cross are changed with the values in VUMeter, 
  42.     in order to give a graphic equalizer effect.
  43.     
  44.         If you had read the last issue, you would have seen that I had a
  45.     colourshifting text sequence, which drew the text of your choice on
  46. ÿ
  47. û
  48.     the screen, and altered the colours in sequence. In case you didn't
  49.     get a hold of this program, I shall place it in the source code on
  50.     disk 2.
  51.     
  52. ü
  53.                                   Using CLS
  54.                                   ~~~~~~~~~
  55. û
  56.         Using CLS on it's own will just clear the whole screen instantly.
  57.     Interesting effects to use would be to use coordinates after the
  58.     command, to clear little boxes off the screen. To do this, you can
  59.     genarate a small array in memory, to hold wether or not a particular
  60.     section on the screen has been cleared. You can call these sections at
  61.     random to produce an interesting screen clear.
  62.     
  63. ü
  64.                                   Using DRAW
  65.                                   ~~~~~~~~~~
  66. û
  67.         If you decide to use DRAW, there are thousands of different ways
  68.     of which to do this. Because DRAW can clear whatever it has underneath 
  69.     it fast, you can create interesting fading patterns, even whilst a 
  70.     colourshift is underway. There is a small program situated on disk 2 
  71.     to tantalize your taste buds in what I mean, so scoot on over there.
  72. ÿ
  73.     
  74. ü
  75.                               Using SCREEN COPY
  76.                               ~~~~~~~~~~~~~~~~~
  77. û
  78.         SCREEN COPY can produce some amay-zing effects, at extremely high
  79.     speeds. It can be used to clear or introduce a new screen into view,
  80.     in much the same way as the CLS command using blocks. You don't have
  81.     to even clear the screen underneath, as everything in it's way will be
  82.     cleaned out, even the colour 0, unlike bob's which will merge with the
  83.     colour 0.
  84.     
  85.         For a much more better idea of what I am prattling on about, try
  86.     loading the example on disk 2 into your AMOS editor, and hit the play
  87.     button.
  88.     
  89. ü
  90.                            Other Interesting Ideas
  91.                            ~~~~~~~~~~~~~~~~~~~~~~~
  92. û
  93.         There are hundreds of different ways in which you can spruce up
  94.     your screens. Take for example, the vectors featured at the bottom of
  95.     the screen you took this document from. These can be really
  96.     interesting, especially when formed into shapes that correspond with
  97. ÿ
  98. û
  99.     the program. You can also make them go at any speed, either by using
  100.     DRAW, or storing them in the memory as BOB's. The 2 vectors in this
  101.     section were done using DRAW, but the 3 at the start of the program
  102.     was done using a sprite bank, simply because DRAW could not provide me
  103.     with the adequate speed that an AMAL string provided.
  104.     
  105.         If enough people hassle me this month, then I may consider doing a
  106.     tutorial on the vectors I have drawn. I am unsure however, on any ways
  107.     of using "Hidden lines" in either a cube or a more complex shape, so
  108.     if anyone out there knows, I would be gratefull of any examples and
  109.     tips you could provide me with.
  110.     
  111. ü
  112.                          Brightening Up A Dull Screen
  113.                          ~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  114. û
  115.         Hmm, I often get asked how to do this. You should start by looking
  116.     at the simple things which you see in front of your eyes. A screen of
  117.     text, for example. Hmm, you could use a font off the disk to give it
  118.     that little bit more jazz. Now then, there is still something missing.
  119.     Ah, a nice little border around the edges using DRAW. Now then, it
  120.     says at the bottom "Press ENTER to continue", so that can go, and I
  121. ÿ
  122. û
  123.     can replace it with a 3D click button saying "Click to Continue".
  124.     There, brightened up the whole thing.
  125.     
  126.         See, even the most dullest of situations can be brightened up with
  127.     just a few extra AMOS commands, which only take a few extra bytes when
  128.     compiled. If you want your program to be noticed, so that the user may
  129.     think of buying it, you will want it to stick out in the crowd.
  130.     
  131.         As mentioned at the top, instead of having the old "Press ENTER"
  132.     stuck at the bottom of the text, you could have a click button, and
  133.     use a font instead of the old Topaz font. Why not use an IFF font to
  134.     make interesting headers, or have a neat fade in/out routine using
  135.     either FADE or something like SCREEN COPY. The list is totally
  136.     endless.
  137.     
  138.         I think I have covered most of this subject, and only you can
  139.     think of the ideas to finish off your program. Good luck !
  140.     
  141. ú
  142.     [Andrew "Mushroom" Kellett]
  143. ÷
  144. EOF
  145.  
  146.